package com.cloud.demo.common.config;

import io.swagger.v3.oas.models.ExternalDocumentation;
import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.info.Contact;
import io.swagger.v3.oas.models.info.Info;
import org.springdoc.core.GroupedOpenApi;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
 
@Configuration
public class Knife4jConfig {

    @Bean
    public OpenAPI openAPI() {
        return new OpenAPI()
                .info(new Info().title("ERP接口文档")
                        .description("工业erp互联网")
                        .version("v1.0")
                        .contact(new Contact().name("TYJ").url("localhost:8081/login")))
                .externalDocs(new ExternalDocumentation()
                        .description("Github example code")
                        .url("https://github.com/"));
    }



}
